﻿IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Indexer]') AND type in (N'U'))
DROP TABLE [dbo].[Indexer]
GO

CREATE TABLE [dbo].[Indexer](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[IndexName] [varchar](20) NULL,
	[ParentFolder] [varchar](500) NULL,
	[Folder] [varchar](500) NULL,
	[Name] [varchar](500) NULL,
	[FileName] [varchar](500) NULL,
	[Length] [int] NULL,
	[PageCount] [int] NULL,
	[LastWriteDateTime] [datetime] NULL,
	[ProcessingTimeMs] [int] NULL,
	[Exception] [varchar](8000) NULL,
	[FolderFileCount] [int] NULL,

	[UCCEAN128BarCodes] [varchar](8000) NULL,
	[Code128BarCodes] [varchar](8000) NULL,
	[Code3Of9BarCodes] [varchar](8000) NULL,
	[CodeInterleaved2Of5BarCodes] [varchar](8000) NULL,
	[CodeStandard2Of5BarCodes] [varchar](8000) NULL,
	[QRBarCodes] [varchar](8000) NULL,
	[DatamatrixBarCodes] [varchar](8000) NULL,
	[UnknownBarCodes] [varchar](8000) NULL,

	[UCCEAN128BarCodes_Count] INT NULL,
	[Code128BarCodes_Count] INT NULL,
	[Code3Of9BarCodes_Count] INT NULL,
	[CodeInterleaved2Of5BarCodes_Count] INT NULL,
	[CodeStandard2Of5BarCodes_Count] INT NULL,
	[QRBarCodes_Count] INT NULL,
	[DatamatrixBarCodes_Count] INT NULL,
	[UnknownBarCodes_Count] INT NULL
	
PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO



USE [PYS]
GO

/****** Object:  Table [dbo].[FileProcessLogger]    Script Date: 09/24/2012 00:22:30 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[FileProcessLogger]') AND type in (N'U'))
DROP TABLE [dbo].[FileProcessLogger]
GO

USE [PYS]
GO

/****** Object:  Table [dbo].[FileProcessLogger]    Script Date: 09/24/2012 00:22:30 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[FileProcessLogger](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[ProcessName] [varchar](20) NULL,
	[FileName] [varchar](500) NULL,
	[Length] [int] NULL,
	[PageCount] [int] NULL,
	[LastWriteDateTime] [datetime] NULL,
	[ProcessedDateTime] [datetime] NULL,
	[ProcessingTimeMs] [int] NULL,
	[Exception] [varchar](8000) NULL,
	[FolderFileCount] [int] NULL,
PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

